import java.util.Observable;

public class ListCoursesWithoutGroup extends Communication {

	public ListCoursesWithoutGroup(Integer registrationNumber, String componentName) {
		super(registrationNumber, componentName);
	}

	public void update(Observable thing, Object notificationNumber) {

		if ( registrationNumber.compareTo((Integer)notificationNumber) == 0) {
			Displays display = new Displays();	
			display.displayCourseList(CommonData.theListOfCourses.getListOfCourses(), false);
		}
	}
}